package com.spring.demo.corp.handler;

import com.spring.demo.corp.PayOrderForm;
import com.spring.demo.corp.PayOrderService;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Order(2)
@Component
public class BalancePayOrderChainFilter implements PayOrderService {

    @Override
    public boolean payOrder(PayOrderForm payOrderForm) {
        // 查询余额
        System.out.println("余额检验通过");
        return true;
    }

}
